package com.joker.aigc.tools.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.joker.aigc.tools.domian.dto.CategoryDTO;
import com.joker.aigc.tools.domian.po.SubCategoriesPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 子分类表Mapper接口
 * @author system
 * @date 2023-12-01
 */
@Mapper
public interface SubCategoriesMapper extends BaseMapper<SubCategoriesPO> {
    
    /**
     * 根据分类ID获取子分类
     * @param categoryId 分类ID
     * @return 子分类列表
     */
    List<CategoryDTO.SubCategoryDTO> getSubCategoriesByCategoryId(@Param("categoryId") Long categoryId);
} 